<%@ page import="net.amsoft.iservice.isso.hibernate.IBroker" %>
<%@ page import="net.amsoft.iservice.isso.service.ISSOService" %>
<%@ page import="net.amsoft.iservice.isso.util.ISSOConstants" %>
<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	// Service URLs
	String contactURL = "#";
	String forwardingURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = ISSOService.getIBroker(request.getServerName());
	if (oIBroker!=null)
	{
		String synonym = oIBroker.getContactURL();
		contactURL = synonym.substring(0, synonym.lastIndexOf('/'));
		synonym = oIBroker.getForwardingURL();
		forwardingURL = synonym.substring(0, synonym.lastIndexOf('/'));
	}

%>

<html>
  <head>
	<SCRIPT LANGUAGE="JavaScript">
		<!--
		
		function check()
	    {
	    	document.ConfigForm["changePassword"].checked = "checked";
	    }
    
	    function submitForm(btName)
	    {
		    document.ConfigForm.step.value=btName;
	    	document.ConfigForm.submit();	    	
	    }
	//-->
	</SCRIPT>

<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><bean:message key="title.activate" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />

  </head>
  
<body onload="check();">

<center>
<table cellspacing=25 border=0 cellpadding=0>
		<%@ include file="leftMenu.jsp" %>
		<td width=605 valign=top>
			<table width=605 border=0 cellspacing=0 cellpadding=0 >
<tr><td align="left" height="23px" valign="bottom"><img src="<%=imagePath%>/tab-click-isso.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" onmouseout="this.src='<%=imagePath%>/tab-click-isso.jpg'" /><a href="<%=contactURL%>"><img src="<%=imagePath%>/tab-noclick-contact.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-contact.jpg'" /></a><a href="<%=forwardingURL%>"><img src="<%=imagePath%>/tab-noclick-forwarding.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-forwarding.jpg'" /></a></td></tr>
				<tr>
					<td align="left" valign="top">
					<table width=605 border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
						<tr height="10">
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
							<td width="585" bgcolor="#999999" valign="top">
								<table height="45">
									<tr height="45">
										<td width="500" bgcolor="#999999" valign="top" height="45">
											<img src="<%=imagePath%>/title_isso_configure.gif" />
										</td>
										<td width="85" bgcolor="#999999" valign="top">
											<!-- 
								  			<a href="#">
								  				<img border="0" src="<%=imagePath%>/button-logout.jpg" 
								  				onclick="submitLogoutForm('logout');" alt="Logout" align="right" />
											</a>
											-->	
										</td>
									</tr>
								</table>
							</td>
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						</tr>						
						<tr >
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
							<td width="585" >
								<html:form action="/ConfigureProfile" method="post">
								<table border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" align="center">
									<tr>
										<td height="32px" colspan="2"><font class="black-smalltext">&nbsp;&nbsp;
											<!-- <b><bean:message key="label.configuration" /></b> --> </font>
										<br />
										<font class="blue-smalltext">&nbsp;<b><html:errors /></b></font></td>
									</tr>
									<tr>
										<td height="12px" colspan="2"></td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.firstName" /></td>
										<td height="27px" class="black-smalltext"><html:text maxlength="255" size="20"
											name="ConfigForm" property="firstName"
											styleClass="textbox"></html:text></td>
									</tr>

									<tr>
										<td height="27px" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.lastName" /></td>
										<td height="27px" class="black-smalltext"><html:text maxlength="255" size="20"
											name="ConfigForm" property="lastName" styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.personalizedGreeting" /></td>
										<td height="27px" class="black-smalltext"><html:text maxlength="180" size="20" 
											name="ConfigForm" property="greeting" styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.email" /></td>
										<td height="27px" class="black-smalltext"><html:text maxlength="255" size="20"
											name="ConfigForm" property="emailAddress"
											styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="8px" colspan="2" valign="bottom"><img height="2px"
											width="100%" src="<%=imagePath%>/dotted-line.gif"
											style="black-smalltext" /></td>
									</tr>
									<tr>
										<td height="8px" colspan="2"></td>
									</tr>
									<tr style="display:none">					
										<td height="27px" class="black-smalltext"><html:checkbox
											property="changePassword" value="true" 				
											styleClass="black-smalltext" styleClass="black-smalltext" /></td>
					
									</tr>

									<tr>
										<td height="27px" class="black-smalltext" NOWRAP>&nbsp;&nbsp;<bean:message
											key="label.password" /><br><b class="blue-xsmalltext">&nbsp;&nbsp;&nbsp;<bean:message
											key="label.min.max.limit" arg0="4" arg1="20" /></b></td>
										<td height="27px" class="black-smalltext"><html:password
											maxlength="20" size="20" property="newPassword" styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="27px" width="150" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.confirmPassword" /></td>
										<td height="27px" class="black-smalltext"><html:password
											maxlength="20" size="20" property="confirmPassword"
											styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="8px" colspan="2"><img width="100%"
											src="<%=imagePath%>/dotted-line.gif" /></td>
									</tr>
									<tr>
										<td height="8px" colspan="2"></td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext" colspan="2">&nbsp;&nbsp;<bean:message
											key="label.challengeQuestion" /></td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext" colspan="2">&nbsp;&nbsp;
										<html:select property="challengeQuestion" name="ConfigForm" styleClass="black-smalltext">
											<html:options collection="ChallengeQuestions" property="value"
												labelProperty="label" styleClass="black-smalltext" />
										</html:select> <br />
										</td>
									</tr>
									<tr>
										<td height="27px" class="black-smalltext">&nbsp;&nbsp;<bean:message
											key="label.challengeAnswer" /><br><b class="blue-xsmalltext">&nbsp;&nbsp;&nbsp;<bean:message
											key="label.min.max.limit" arg0="2" arg1="20" /></b></td>
										<td height="27px" class="black-smalltext"><html:text
											disabled="false" property="challengeAnswer" size="20" maxlength="20"
											styleClass="textbox" /></td>
									</tr>
									<tr>
										<td height="12px" colspan="2"></td>
									</tr>
									<tr>
										<td><html:hidden property="changeAnswer" value="true" /></td>
									</tr>
									<tr>
										<td><input type="hidden" name="loggedInSynonym" value='<%=request.getAttribute(ISSOConstants.REQ_ATTRIB_SYNONYM)%>'> </td>
									</tr>
									<tr>
										<html:hidden property="step" value="cancel" />
										<td height="20px" class="black-smalltext" >&nbsp;&nbsp;</td>
										<td height="20px" class="black-smalltext" align=left> 
											<img border="0" src="<%=imagePath%>/button-submit.jpg" onclick="submitForm('save');"/>
										</td>
										
									</tr>
								</table>
								</html:form>
							</td>
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						</tr>						
						<tr height="10">
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
							<td width="585" bgcolor="#999999"></td>
							<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						</tr>						
					</table>
					</td>
				</tr>
			</table>
		<!-- 
		<td background="<%=imagePath%>/grey-bg.gif" width="290px" valign=top><img
			src="<%=imagePath%>/related-news.gif" width="290" /><br>
		</td>
		-->
		</td>
	</tr>
	<!-- 
	<tr>
		<td>&nbsp;</td>
		<td colspan=2><font class="black-xsmalltext"></font></td>
	</tr>
	-->
</table>
</center>
   		
   		
   		

   		
   		
  </body>
</html>
